﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace RPGXEngine.Scripting.SystemFunctions
{
    public static class SystemFunction_StringIsEmpty
    {
        public static IVariableType Method(ScriptManager sm, FunctionScope scope, List<IVariableType> data)
        {
            if (data == null || data.Count != 1)
                return sm.False;

            string s = data[0].Value.ToString();

            return String.IsNullOrEmpty(s) ? sm.True : sm.False;
        }
    }
}
